<?php


namespace app\sports\events\model;
use think\Db;
use think\Model;

class EventsModel extends Model
{
      private $database = 'sports_database';

      /*
       *批量插入赛事数据
       *
       */
      public function InsertEventsAll(array $array)
      {
         return Db::database($this->database)->table('foot_ball_events')->strict()->insertAll($array);
      }

      /*
       * 查询赛事的id
       */
      public function QueryEventsId(){
          return Db::database($this->database)->table('foot_ball_events')->field('events_id')->select();
      }

      /*
       * 更新赛事数据
       * @id 要更新的赛事的id
       * @$array 要更新的数据
       */
      public function UpdateEvents($id,$array){

      }
}